#define  _CRT_SECURE_NO_WARNINGS

#include "MySList.h"

void test1()
{

	
	SL* plist = NULL;
	SListPushBack(&plist, 1);
	SListPrint(plist);
	/*SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPrint(plist);
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushFront(&plist, 3);
	SListPrint(plist);
	SListPopFront(&plist);*/
	SListPopBack(&plist);
	SListPrint(plist);

}

test2()
{
	SL* plist = NULL;
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPrint(plist);
	SL* pos = SListFind(plist, 2);
	if (pos)
	{
		SListErase(&plist, pos);

		//SListInsert(&plist, pos, 5);
	}
	SListPrint(plist);


}

int main()
{

	//test1();
	test2();
	return 0;
}